﻿using PRO.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;

namespace web.api.validatecode
{
    /// <summary>
    /// 生成验证码图片
    /// </summary>
    public class img : IHttpHandler, IRequiresSessionState 
    {

        public void ProcessRequest(HttpContext context)
        {
            ValidateCode code = new ValidateCode();
            code.ValidateCodeType = 2;
            code.Length = 4;
            code.Create();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}